package com.itheima.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.itheima.dao.UserDao;
import com.itheima.domain.User;
import com.itheima.service.UserService;
import com.itheima.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;


public class UserServiceImpl implements UserService {

    @Override
    public PageInfo<User> findByPage(Integer page, Integer size) {
        return null;
    }

    // 查找用户的方法
    @Override
    public List<User> findAll() {
        UserDao mapper = (UserDao) MybatisUtils.getMapper(UserDao.class);

        return mapper.findAll();
    }

    @Override
    public void save(User user) {

    }

    @Override
    public void deleteById(String id) {

    }

    @Override
    public User findById(String id) {
        return null;
    }

    @Override
    public void update(User user) {

    }

    @Override
    public User login(User u) {
        return null;
    }

    @Override
    public User checkName(String name) {
        return null;
    }
}
